﻿namespace GlobalUtil {
    using System;
    using System.Collections.Generic;
    using System.Configuration;
    
    public class Constants {
        private static readonly string dataProvider = ConfigurationManager.AppSettings.Get("DataProvider");
    
        public static string ConnectionString = ConfigurationManager.ConnectionStrings[dataProvider].ConnectionString;

        internal static List<string> ObjectMapKYOPHUONGDOPC = new List<string>();

        public enum TransactionType {
            Simple,
            Distributed,
        }

        public static string PersistException {
            get {
                return ("Transaction Rolled Back:  The following exception was thrown when persisting the " +
                    "database:" 
                            + (Environment.NewLine + Environment.NewLine));
            }
        }
    }
}